package com.liu.my_blog_system.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * tb_kpi_daily 每天访问量统计表(TbKpiDaily)表实体类
 *
 * @author liuchengjie
 * @since 2021-04-07 14:18:22
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TbKpiDaily extends Model<TbKpiDaily> {
    //ID
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    //浏览量
    private Integer viewCount;
    //更新时间
    private Date updateTime;


    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
